package com.green.service.util;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.log4j.Logger;


/**
 * @author hxy
 * @date 2012-2-14
 * 
 */
public class GetValueUtil {
	private static  Logger logger = Logger.getLogger(GetValueUtil.class);   
	public static PropertiesConfiguration propertiesConfiguration;
	static{
		try {
			propertiesConfiguration=new PropertiesConfiguration("GetValueSql.properties");
		} catch (ConfigurationException e) {
			 logger.error("配置文件[GetValueSql.properties]不存在");
		}
	}
	public static String getSql(String name){
		try {
			return	propertiesConfiguration.getString(name,"");
		} catch (Exception e) {
			 logger.error("获取的"+name+"属性吧不存在！");
		}
		return "";
	}
	
}
